import React from 'react';
import { Icon } from 'antd';

export default {
  UserName: {
    props: {
      size: 'large',
      id: 'username',
      prefix: <Icon type="user" />,
      placeholder: '用户名',
    },
    rules: [
      {
        required: true,
        message: 'Please enter username!',
      }
    ]
  },
  Password: {
    props: {
      size: 'large',
      id: 'password',
      type: 'password',
      prefix: <Icon type="lock"/>,
      placeholder: '密码',
    },
    rules: [
      {
        required: true,
        message: 'Please enter password!',
      },
    ],
  },
}
